'use strict';


/**
 * List of company
 */
exports.list = function(req, res) {
    var data = {};
    req.getConnection(function(err, conn) {
        if (err) {
            return res.send(401);
        } else {
            conn.query('select * from company ', function(err,result) {
                if (err) {
                    return next(err);
                } else {
                    res.json(result); 
                }
            });
        }
    });
};